function move(ele, data, cb){
    clearInterval(ele.t);
    ele.t = setInterval(() => {
        let flag = true;
        for(let i in data){
            let now = parseInt(getStyle(ele, i));
            let speed = (data[i] - now)/8;
            speed = speed > 0 ? Math.ceil(speed) : Math.floor(speed);
            if(now !== data[i]) flag = false;
            ele.style[i] = now + speed + "px";
        }
        if(flag){
            clearInterval(ele.t);
            cb && cb();
        }
    }, 30);
}
function getStyle(ele, attr){
    return getComputedStyle ? getComputedStyle(ele)[attr] : ele.currentStyle[attr];
}